package com.book.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 书本类别
 * </p>
 *
 * @author auto
 * @since 2025-04-02 06:38:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("book_category")
@Schema(name = "BookCategory对象", description = "书本类别")
public class BookCategory {

    @Schema(name = "主键")
    @TableId(value = "book_category_id", type = IdType.ASSIGN_UUID)
    private String bookCategoryId;

    @Schema(name = "类别")
    @TableField("category")
    private String category;

    @Schema(name = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(name = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
